﻿#region 命名空间

using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WinnerCMS.BLL;
using WinnerCMS.Common;
using WinnerCMS.Model;
using WinnerCMS.WebFactory;

#endregion

namespace WinnerCMS.WebUI.Vote
{
    public partial class VoteResult : ClientPublicPage
    {
        protected int AllCount;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                var vi = new VoteManage().Load(int.Parse(Request["ID"]));
                if (vi == null) return;

                Title = vi.Title;
                this.Literal1.Text = vi.Title;

                this.Chart1.DataSource = new VoteManage().GetResult(Request["ID"]);
                this.Chart1.DataBind();
            }
        }
    }
}